import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import iview from 'iview'
import 'iview/dist/styles/iview.css'
import auth from '@/util/auth'
import '@/css/common.css'
import Directives from '@/views/direct/index.js'
import * as filters from '@/filter/filter.js'


for(let key in filters){  //自定义指令同理
  Vue.filter(key,filters[key])
}

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
Vue.use(iview)
Vue.directive("auth",auth)
Vue.use(Directives)


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
